// 巡查走访 - 需要权限控制的菜单
const inspectVisitJurisdictionRoutes = [
  {
    path: '/inspectvisit',
    name: 'inspectvisit',
    meta: {
      title: '巡查走访'
    },
    component: () => import('@/views/InspectVisit')
  },
  // 巡查点巡查
  {
    path: '/inspectvisit/inspect/grid/map',
    name: 'inspectvisit-inspect-grid-map',
    meta: {
      title: '巡查点巡查地图'
    },
    component: () => import('@/views/InspectVisit/Inspect/Grid/map')
  },
  {
    path: '/inspectvisit/inspect/grid/record',
    name: 'inspectvisit-inspect-grid-record',
    meta: {
      title: '巡查点巡查记录'
    },
    component: () => import('@/views/InspectVisit/Inspect/Grid/record')
  },
  // 重点单位巡查
  {
    path: '/inspectvisit/inspect/company/map',
    name: 'inspectvisit-inspect-company-map',
    meta: {
      title: '重点单位巡查地图'
    },
    component: () => import('@/views/InspectVisit/Inspect/Company/map')
  },
  {
    path: '/inspectvisit/inspect/company/record',
    name: 'inspectvisit-inspect-company-record',
    meta: {
      title: '重点单位巡查记录'
    },
    component: () => import('@/views/InspectVisit/Inspect/Company/record')
  },
  // 人员走访
  {
    path: '/inspectvisit/visit/list',
    name: 'inspectvisit-visit-list',
    meta: {
      title: '人员列表'
    },
    component: () => import('@/views/InspectVisit/Visit/list')
  },
  {
    path: '/inspectvisit/visit/report',
    name: 'inspectvisit-visit-report',
    meta: {
      title: '走访上报'
    },
    component: () => import('@/views/InspectVisit/Visit/report')
  }
]

// 巡查走访 - 不需要权限控制的菜单
const inspectVisitWhiteRoutes = [
  // 巡查点巡查
  {
    path: '/inspectvisit/inspect/grid/list',
    name: 'inspectvisit-inspect-grid-list',
    meta: {
      title: '巡查点巡查列表'
    },
    component: () => import('@/views/InspectVisit/Inspect/Grid/list')
  },
  {
    path: '/inspectvisit/inspect/grid/report',
    name: 'inspectvisit-inspect-grid-report',
    meta: {
      title: '巡查点巡查结果'
    },
    component: () => import('@/views/InspectVisit/Inspect/Grid/report')
  },
  {
    path: '/inspectvisit/inspect/grid/detail',
    name: 'inspectvisit-inspect-grid-detail',
    meta: {
      title: '巡查点巡查详情'
    },
    component: () => import('@/views/InspectVisit/Inspect/Grid/detail')
  },
  // 重点单位巡查
  {
    path: '/inspectvisit/inspect/company/list',
    name: 'inspectvisit-inspect-company-list',
    meta: {
      title: '重点单位巡查列表'
    },
    component: () => import('@/views/InspectVisit/Inspect/Company/list')
  },
  {
    path: '/inspectvisit/inspect/company/report',
    name: 'inspectvisit-inspect-company-report',
    meta: {
      title: '重点单位巡查结果'
    },
    component: () => import('@/views/InspectVisit/Inspect/Company/report')
  },
  {
    path: '/inspectvisit/inspect/company/detail',
    name: 'inspectvisit-inspect-company-detail',
    meta: {
      title: '重点单位巡查详情'
    },
    component: () => import('@/views/InspectVisit/Inspect/Company/detail')
  },
  {
    path: '/inspectvisit/inspect/company/warningDetail',
    name: 'inspectvisit-inspect-company-warningDetail',
    meta: {
      title: '预警详情'
    },
    component: () => import('@/views/InspectVisit/Inspect/Company/warningDetail')
  },
  {
    path: '/inspectvisit/inspect/company/warning',
    name: 'inspectvisit-inspect-company-warning',
    meta: {
      title: '人员预警'
    },
    component: () => import('@/views/InspectVisit/Inspect/Company/warning')
  },
  {
    path: '/inspectvisit/inspect/record/list',
    name: 'inspectvisit-inspect-record-list',
    meta: {
      title: '单位巡查记录'
    },
    component: () => import('@/views/InspectVisit/Inspect/Record/list')
  },
  {
    path: '/inspectvisit/inspect/record/map',
    name: 'inspectvisit-inspect-record-map',
    meta: {
      title: '单位巡查地图'
    },
    component: () => import('@/views/InspectVisit/Inspect/Record/map')
  }
]

// 巡查走访 - 菜单
const inspectVisitRoutes = [...inspectVisitJurisdictionRoutes, ...inspectVisitWhiteRoutes]

export { inspectVisitJurisdictionRoutes, inspectVisitWhiteRoutes, inspectVisitRoutes }
